#include <stdio.h>
#include <stdlib.h>
#include <time.h>

int random_me(int x, int y) {

    double key;
    int min, max, range, num;
    long int randnum;
    min = x;
    max = y;
    range = max - min;

    srand((unsigned int) time(NULL));
    randnum = rand() * drand48();
    key = ((double) randnum) / ((double) RAND_MAX + 1.0);
    num = (int) (key * (double) range);
    num = num + min;
    return num;
}
